<?php
/**
 * Description of Imagenes
 *
 * @author gonzalo.orellano
 */
class Modelimage extends CI_Model{
    
    public function redimencionar($seccion,$galeria,$nombre){
        $config['source_image'] = "./fotos/".$seccion."/".$galeria."/".$nombre;
        $config['maintain_ratio'] = TRUE;
        $config['dynamic_output'] = FALSE;
        $config['width'] = 75;
        $config['height'] = 50;
        $config['new_image'] = "./fotos/".$seccion."/".$galeria."/mini/";
        $config['create_thumb'] = TRUE;
        $config['thumb_marker'] = "";
        $this->load->library('image_lib', $config);
        $this->image_lib->resize();        
    }
    
}
?>
